package com.ruicar.afs.cloud.finance.common.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.ruicar.afs.cloud.common.core.entity.BaseEntity;
import com.ruicar.afs.cloud.common.modules.contract.enums.FundLineEnum;
import lombok.Data;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/**
 * <p>Description: </p>
 *
 * @author ZC.GUO
 * @version 1.0
 * @date create on 2020-07-02 09:38
 */
@Data
@Accessors(chain = true)
@TableName(value ="finance_unused_funds_history", autoResultMap = true)
public class FinanceUnusedFundsHistory extends BaseEntity<FinanceUnusedFundsHistory> {
    /** 虚拟账户id */
    private Long accountId ;
    /** 合同号码 */
    private String contractNo ;
    /** 类型;枚举值：来款入账、余额分配、分配后撤销、退款 */
    private FundLineEnum fundsType ;
    /** 收据id;撤销后暂存类型的为撤销前的收据id */
    private Long fundId ;
    /** 金额;来款入账、分配后撤销、为正
     余额分配、退款  为负 */
    private BigDecimal amount ;
}
